package com.homestead.feign;

import com.homestead.resp.CommonResponse;
import com.homestead.vo.CouponsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "spring-cloud-coupons")
public interface CouponFeignClient {

    @GetMapping("/coupons/getOneByCouponId")
    CommonResponse<CouponsVo> getOneByCouponId(@RequestParam("id") String id);
}
